{% extends 'base.html' %}
{% load staticfiles %}
{% block content_block %}
<div class="container">
	<div class="register">
		<h1>注册</h1>
		  	  <form action="{% url 'register' %}" method="post">
                 {% csrf_token %}
				 <div class="col-md-6  register-top-grid">
					<div class="mation">
						<span>用户名</span>
						{{ reg_form.username }}

						 <span>邮箱</span>
						 {{ reg_form.email }}
					</div>
					 <div class="clearfix"> </div>
                 </div>
                 <div class=" col-md-6 register-bottom-grid">
                    <div class="mation">
                        <span>密码</span>
                        {{ reg_form.password }}
                        <span>确认密码</span>
                        {{ reg_form.confirm_password }}
                    </div>
                 </div>
                 <div class="clearfix"> </div>
                  <div class="register-but">
                       <input type="hidden" name="source_url" value="{{ request.META.HTTP_REFERER }}">
                      <input type="submit" value="submit">
                      <div class="clearfix"> </div>
				  </div>
              </form>
    </div>
</div>
{% endblock %}